(function ($) {
  Drupal.behaviors.exampleModule = {
    attach: function(context, settings) {
      var page_wrapper_width = $(document).width();  
      //console.log('page_wrapper_width',page_wrapper_width);
      /*console.log('page_wrapper_width',$('#content .section').css('marginLeft'));
      console.log('page_wrapper_width',$('#content').width());
      console.log('page_wrapper',$('#page-wrapper').width());
      console.log('#ddblock-container',$('.ddblock-container').width());
      console.log('#ddblock-containt',$('.ddblock-contents').width());
      console.log('960px?',$('#content .section').width());
      */var margin_left_2 = ($('#content').width() - $('#content .section').width())/2;
      var margin_left = ($('#page-wrapper').width()-$('#content').width())/2;
      //console.log('margin_left ',margin_left+margin_left_2);
      $('.section').css('marginLeft',margin_left+margin_left_2);
      //$('.ddblock-container').css('marginLeft',(page_wrapper_width-$('.ddblock-container').width())/2);
      //y$('.ddblock-container').
      $(context).find('#edit-apiusername').append('test');
    }
  }
})(jQuery);